'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url admin/pages/kh/admin/30days 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------
		
		var time = vk.pubfn.getCommonTime(new Date());
		var todayStart = time.todayStart;
		var todayEnd = time.todayEnd;
		//昨日开始时间 = 今日开始时间减86400000（24小时）
		var last_StartTime = todayStart - 86400000
		var last_EndTime = todayStart - 1 //昨日结束时间
		var yesterday = vk.pubfn.timeFormat(last_StartTime, "yyyy-MM-dd");
		
		console.log("todayStart=", todayStart);
		console.log("3", vk.pubfn.getDayOffsetStartAndEnd(-3).startTime);



		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
